package ytmc;

import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;


/**
 *
 * @author Kicok
 */
public abstract class FrameView extends JFrame implements View
{
    protected ArrayList<PanelView> children;

    public FrameView()
    {
        children = new ArrayList<PanelView>();
    }


    public void addChild( PanelView view )
    {
        children.add( view );
    }

    public List<PanelView> getChildren()
    {
        return (List<PanelView>)children.clone();
    }
}